package com.wlyuan.open.scanner.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjie
 * @since 2022-09-23
 */
@Data
@TableName("TMS_MGoods")
@ApiModel(value = "GoodsDO对象", description = "")
public class GoodsDO implements Serializable {


    private static final long serialVersionUID = -882882694761430089L;
    @ApiModelProperty("物品编码")
    private String goodsCode;

    @ApiModelProperty("物品名称")
    private String goodsName;

    @ApiModelProperty("类型名称ID")
    private Long goodsTypeid;

    @ApiModelProperty("所属客户")
    private Long goodsCustomercompanyid;

    @ApiModelProperty("物品价值")
    private Double goodsPrice;

    @ApiModelProperty("规格")
    private String goodsSpc;

    @ApiModelProperty("体积（立方米）")
    private Double goodsVolume;

    @ApiModelProperty("长（米）")
    private Double goodsLong;

    @ApiModelProperty("宽（米）")
    private Double goodsWidth;

    @ApiModelProperty("高（米）")
    private Double goodsHeight;

    @ApiModelProperty("重量（公斤）")
    private Double goodsWeight;

    @ApiModelProperty("毛重（公斤）")
    private Double goodsMweight;

    @ApiModelProperty("创建人")
    private Long goodsCreator;

    @ApiModelProperty("创建者公司")
    private Long goodsCreatorcompanyid;

    @ApiModelProperty("添加时间")
    private LocalDateTime goodsInserttime;

    @ApiModelProperty("最新修改人")
    private Long goodsUpdater;

    @ApiModelProperty("最新修改时间")
    private LocalDateTime goodsUpdatetime;

    @ApiModelProperty("是否失效 0 否 1失效")
    private Integer goodsInvalid;

    @ApiModelProperty("备注")
    private String goodsComments;

    @ApiModelProperty("数量单位")
    private Long goodsUnit;

    @ApiModelProperty("物料编码")
    private String goodsBarcode;

    @ApiModelProperty("物品箱号（对接）")
    private Long goodsBoxno;

    @ApiModelProperty("简称")
    private String goodsShortname;

    @ApiModelProperty("对接账号")
    private String goodsFromoperator;

    @ApiModelProperty("物品ID（对接）")
    private Long goodsTerminalgoodsid;

    @ApiModelProperty("物品编码（对接）")
    private String goodsTerminalgoodscode;

    @ApiModelProperty("英文名称")
    private String goodsEnname;

    @ApiModelProperty("使用热度")
    private Integer goodsHotcount;

    @ApiModelProperty("箱入数")
    private Long goodsAmount;

    @ApiModelProperty("客户ID")
    private Long goodsCustomerid;

    @ApiModelProperty("版本（用来控制并发执行）")
    private Long goodsVersion;

    @ApiModelProperty("异常标签 0 无   1 有")
    @TableField(exist = false)
    private Integer goodsExceptiontag;

    private String goodsGuid;

    private Integer optStatus;

    @TableId(value = "Goods_ID", type = IdType.AUTO)
    private Long goodsId;

    @TableField(exist = false)
    private String customerName;

    @TableField(exist = false)
    private String unit;

    @TableField(exist = false)
    private Long unitId;

    @TableField(exist = false)
    private String type;

    @TableField(exist = false)
    private Long typeId;

    @TableField(exist = false)
    private String raw;

    @TableField(exist = false)
    private Long customerCompanyId;
}
